From 8d0bfa4e4e0e30301fb3fe4210faaff55fefd1ed Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 30 Jan 2006 04:25:56 +0000 Subject: [PATCH] #defines for USB packet types to improve readability. --- jeeps/garminusb.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jeeps/garminusb.h b/jeeps/garminusb.h index 7e07600da..638be5b01 100644 --- a/jeeps/garminusb.h +++ b/jeeps/garminusb.h @@ -57,3 +57,10 @@ int gusb_cmd_get(garmin_usb_packet *ibuf, size_t sz); int gusb_open(const char *portname); int gusb_close(const char *portname); int gusb_init(const char *portname); + +/* + * New packet types in USB. + */ +#define GUSB_SESSION_START 5 /* We request units attention */ +#define GUSB_SESSION_ACK 6 /* Unit responds that we have its attention */ +#define GUSB_REQUEST_BULK 2 /* Unit requests we read from bulk pipe */ -- 2.30.2